package com.nike.amoeba.base

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.nike.amoeba.bean.AppRoomDataBase
import com.nike.amoeba.util.CacheUtil
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.callback.databind.StringObservableField
import me.hgj.jetpackmvvm.callback.livedata.event.EventLiveData

/**
 * User: Nike
 *  2024/11/7 16:47
 */
open class MyBaseViewModel : BaseViewModel() {

    var code = StringObservableField()

    var title = StringObservableField("Amoeba")

    var orderId = StringObservableField()
    var assetNo = StringObservableField()

    var batchNo = StringObservableField()

    val userId = CacheUtil.getUser()?.RoNo

    val companyId = CacheUtil.getUser()?.companyId

    val taskAssetDao = AppRoomDataBase.get().getTaskAssetDao()

    val assetDao = AppRoomDataBase.get().getAssetDao()

    val stockEpcDao = AppRoomDataBase.get().getStockEpcDao()

    var orderSerch: MutableLiveData<String> = MutableLiveData()

    val parentDao = AppRoomDataBase.get().getMainDrawerParentDao()

    val taskStockDao = AppRoomDataBase.get().getTaskStockDao()

    val uploadOrderListDao = AppRoomDataBase.get().getUploadOrderListDao()

    val configDao = AppRoomDataBase.get().getConfigDao()

    val uploadOrderDao = AppRoomDataBase.get().getUploadOrderDao()

    val taskStockListDao = AppRoomDataBase.get().getTaskStockListDao()

    val mainDrawerParentDao = AppRoomDataBase.get().getMainDrawerParentDao()

    val mainDrawerDao = AppRoomDataBase.get().getMainDrawerDao()

    var stockListDao = AppRoomDataBase.get().getStockListDao()

    val existEpcDao = AppRoomDataBase.get().getExistEpcDao()

}